//
//  myCollectionViewCell.m
//  Inner  Voice
//
//  Created by Martin.Wang on 16/2/27.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "myCollectionViewCell.h"

#import <AFNetworking.h>

@implementation myCollectionViewCell

- (void)layoutSubviews {

    [super layoutSubviews];
}

- (void)awakeFromNib {
    
   // self.image.image = [UIImage imageNamed:@"1.jpg"];
    
}

- (void)loadImageWithStr:(NSString*)str{
    
    NSURL *url = [NSURL URLWithString:str];
    
    [self.image sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"1.jpg"]];
 //    画圆角
    self.image.layer.cornerRadius = 8;
    self.image.layer.masksToBounds = YES;
    [self.image.layer setBorderWidth:2];
    [self.image.layer setBorderColor:(__bridge CGColorRef _Nullable)([UIColor blueColor])];
    self.image.contentMode = UIViewContentModeScaleAspectFill;
}


@end
